imx: mx7: avoid some initialization if low level is skipped
authorRui Miguel Silva <[email protected]>
Wed, 5 Sep 2018 10:56:05 +0000 (11:56 +0100)
committerStefano Babic <[email protected]>
Mon, 22 Oct 2018 12:37:28 +0000 (14:37 +0200)
commitbe277c3a89fcec9f837bf4fb562c606155b0999f
tree006051a89e52553ba5f22e09dc68297fcf60a3ca
parent7677c0de14739fa0e63f97cf290b68bec0c497c1
imx: mx7: avoid some initialization if low level is skipped

We can have the case where u-boot is launched after some other low level
enabler, like for example when u-boot runs after arm-trusted-firmware
and/or optee. So, because of that we may need to jump the initialization of
some IP blocks even because we may no longer have the permission for that.

So, if the config option to skip low level init is set disable also timer,
board and csu initialization.

Signed-off-by: Rui Miguel Silva <[email protected]>
Signed-off-by: Bryan O'Donoghue <[email protected]>
Cc: Stefano Babic <[email protected]>
Cc: Fabio Estevam <[email protected]>
Cc: Albert Aribaud <[email protected]>
Cc: Peng Fan <[email protected]>
Cc: [email protected]
Reviewed-by: Peng Fan <[email protected]>
arch/arm/mach-imx/mx7/soc.c
arch/arm/mach-imx/syscounter.c